package cn.gemiman.daoyi.module.cms.controller.admin.blogmessage.vo;

import cn.gemiman.daoyi.module.cms.vo.WithLikeBaseVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.gemiman.daoyi.framework.excel.core.annotations.DictFormat;
import cn.gemiman.daoyi.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 留言 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BlogMessageRespVO extends WithLikeBaseVO<Long> {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12083")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "站点编号", example = "14527")
    @ExcelProperty("站点编号")
    private Long appSiteId;

    @Schema(description = "站点标识", example = "3641")
    @ExcelProperty("站点标识")
    private String appId;

    @Schema(description = "用户类型", example = "2")
    @ExcelProperty(value = "用户类型", converter = DictConvert.class)
    @DictFormat("user_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer userType;

    @Schema(description = "用户编号", example = "18473")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户昵称", example = "张三")
    @ExcelProperty("用户昵称")
    private String userNickname;

    @Schema(description = "用户头像")
    @ExcelProperty("用户头像")
    private String userAvatar;

    @Schema(description = "背景颜色")
    @ExcelProperty("背景颜色")
    private String bgColor;

    @Schema(description = "背景图片", example = "https://www.iocoder.cn")
    @ExcelProperty("背景图片")
    private String bgUrl;

    @Schema(description = "字体颜色")
    @ExcelProperty("字体颜色")
    private String color;

    @Schema(description = "字体大小")
    @ExcelProperty("字体大小")
    private Integer fontSize;

    @Schema(description = "字体宽度")
    @ExcelProperty("字体宽度")
    private Integer fontWeight;

    @Schema(description = "标签")
    @ExcelProperty("标签")
    private String tag;

    @Schema(description = "内容")
    @ExcelProperty("内容")
    private String message;

    @Schema(description = "@谁")
    @ExcelProperty("@谁")
    private String referTo;

    @Schema(description = "状态", example = "2")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "审核状态", example = "1")
    @ExcelProperty(value = "审核状态", converter = DictConvert.class)
    @DictFormat("bpm_process_instance_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer approveStatus;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Long sort;

    @Schema(description = "访问次数")
    @ExcelProperty("访问次数")
    private Long viewTimes;

    @Schema(description = "点赞数量")
    @ExcelProperty("点赞数量")
    private Long thumbsUpTimes;

    @Schema(description = "创建者ip")
    @ExcelProperty("创建者ip")
    private String creatorIp;

    @Schema(description = "创建者城市")
    @ExcelProperty("创建者城市")
    private String creatorCity;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
